package com.adou.second.day3;
/**
 * 匿名内部类使用
 * @author admin
 * 
 */
public class InterDemo {
	public static void main(String[] args) {
		InterDemo demo =  new InterDemo();
		demo.method();
	}
	
	public void method(){
		new Inter() {
			
			@Override
			public void show() {
				System.out.println("匿名内部类");
				
			}
		}.show();
	}
}


